#!/bin/bash

source prepareEnv_wsl.sh

if [ -d "./${STANDALONE_CASSANDRA_DIR}" ]; then
    echo "${STANDALONE_CASSANDRA_DIR} is existed, exit"
    exit
else
    echo "${STANDALONE_CASSANDRA_DIR} is not existed, download and unpack"
    mvn dependency:unpack -Dartifact="${STANDALONE_CASSANDRA_ARTIFACT}" -DoutputDirectory="./${STANDALONE_CASSANDRA_DIR}"
fi